package chai.ning.args;

import java.io.PrintStream;

public class Human
{
  private String name;
  private char gender;

  public void set(String name, char gender)
  {
    this.name = name;
    this.gender = gender;
  }

  public void introduce() {
    System.out.println(this.name + " , " + this.gender);
  }

  public void change(Human customer) {
    System.out.println(System.identityHashCode(customer));
    if (customer != null)
    {
      if (customer.gender == '男')
        customer.gender = '女';
      else if (customer.gender == '女')
        customer.gender = '男';
    }
  }

  public static void main(String[] args)
  {
    Human h = new Human();
    h.name = "牛大夫";
    h.gender = '男';
  }
}